package com.mycode.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mycode.domain.TOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author Zengsh123 
 * @date 2020-03-17 14:22.
 */
@Mapper
public interface TOrderMapper extends BaseMapper<TOrder> {
    /**
     * 新建订单
     */
    int creat(TOrder order);

    /**
     * 更改订单状态
     */
    int update(@Param("userId") Long userId, @Param("status") Integer status);
}